package com.infore.airsupervise.ui.activity;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;

import com.infore.airsupervise.app.Constants;
import com.infore.airsupervise.bean.UserE;

public class AppStartActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        //判断登录状态
        boolean isLogin = UserE.getLoginStatus();
        startActivity(new Intent(this, isLogin ? MainActivity.class : LoginActivity.class));
        finish();
    }
}
